<!--引入公共页面-->
<extend file='resource/view/admin.php'/>
<!--定义模块内容-->
<block name="admin">	


		<div class="admin">
			<!-- 选项卡开始 -->
			<div class="tab">
				<!-- 顶部选项卡-->
				<div class="tab-head">
					<strong>栏目管理</strong>
					<ul class="tab-nav">
						<li class="active"><a href="#tab-set">栏目列表</a></li>
						<li><a href="#tab-email">待审核</a></li>
						<li><a href="#tab-upload">定时发布</a></li>
						<li><a href="#tab-hui">回收站</a></li>
					</ul>
				</div>
				<!-- 顶部选项卡结束 -->
				<!-- 选项卡内容开始 -->
				<div class="tab-body">
					<!-- 选项卡1开始 -->
					<div class="tab-panel active" id="tab-set">
						<div class="panel admin-panel">
						<div class="panel-head"><strong>栏目管理</strong></div>
						<div class="padding border-bottom">
							<input type="button" class="button button-small checkall" name="checkall" checkfor="id" value="全选" />
							<input type="button" class="button button-small border-green" value="栏目列表" />
							<input type="button" class="button button-small border-yellow" value="添加顶级栏目" />
							<input type="button" class="button button-small border-yellow" value="批量删除" />					
							<input type="button" class="button button-small border-blue" value="回收站" />
						</div>
						<table class="table table-hover">
						<tr>
							<th width="45">选择</th>
							<th width="45">CID</th>							
							<th width="45">排序</th>
							<th width="120">栏目名称</th>							
							<th width="120">栏目类型</th>
							<th width="100">模型</th>
							<th width="*">操作</th>
						</tr>
						<foreach from="$cate" key="$k" value="$v">
						<tr>							
							<td  width="45"><input type="checkbox" name="id" value="12" /></td>
							<td  width="60">{{$v['cate_id']}}</td>
							<td width="100"><input type="text" name="cate_sort" value="{{$v['cate_sort']}}" /></td>
							<td width="200">{{$v['_cate_name']}}</td>						
							<td width="120">封面</td>
							<td width="100">文章</td>
							<td>
								<a class="button border-blue button-little" href="#">访问</a> 
								<a class="button border-blue button-little" href="{{U('admin/cate/addsoncate',array('id'=>$v['cate_id']))}}">添加子栏目</a> 
								
								<a class="button border-blue button-little" href="#">修改</a> 
								<a class="button border-yellow button-little" href="#" onclick="{if(confirm('确认删除?')){return true;}return false;}">删除</a>
							</td>							
						</tr>
						</foreach>
											
						</table>
						<div class="panel-foot text-center">
							<ul class="pagination">
								<li><a href="#">上一页</a></li>
							</ul>
							<ul class="pagination pagination-group">
								<li><a href="#">1</a></li>
								<li class="active"><a href="#">2</a></li>
								<li><a href="#">3</a></li>
								<li><a href="#">4</a></li>
								<li><a href="#">5</a></li>
							</ul>
							<ul class="pagination">
								<li><a href="#">下一页</a></li>
							</ul>
						</div>
						</div>
					</div>
					<!-- 选项卡1结束 -->
					<!-- 选项卡2开始 -->
					<div class="tab-panel" id="tab-email">
							待审核
					</div>
					<!-- 选项卡2结束 -->
					<div class="tab-panel" id="tab-upload">文章状态</div>
					<div class="tab-panel" id="tab-hui">回收站</div>

				</div>
				<!-- 选项卡内容结束 -->
			</div>
			<!-- 选项卡结束 -->
		</div>

</block>